package com.education.wisdom.service;


import com.education.wisdom.pojo.Questions;
import com.education.wisdom.vo.QuestionsVo;

import java.util.List;
import java.util.Map;

/**
 * 试题 服务层
 * 
 * @author ruoyi
 * @date 2018-11-13
 */
public interface IQuestionsService 
{
	/**
     * 查询试题信息
     * 
     * @param stId 试题ID
     * @return 试题信息
     */
	public Questions selectQuestionsById(String stId);
	
	/**
     * 查询试题列表
     * 
     * @param questions 试题信息
     * @return 试题集合
     */
	public List<Questions> selectQuestionsList(Questions questions);
	
	/**
     * 新增试题
     * 
     * @param questions 试题信息
     * @return 结果
     */
	public int insertQuestions(Questions questions);
	
	/**
     * 修改试题
     * 
     * @param questions 试题信息
     * @return 结果
     */
	public int updateQuestions(Questions questions);
		
	/**
     * 删除试题信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteQuestionsByIds(String ids);
	public int deleteQuestionsById(Integer id);

	public List<QuestionsVo> selectQuestionsListById(Map<String, Object> map);

	public Integer selectCount(Map<String, Object> map);

	public Integer selectCountByPaperId(Integer paperId);

    List<Questions> selectByPaperId(Integer id);

    List<Questions> selectByPaperId(Integer id,Integer type);

	String[] selectIdsByType(Integer type);

	String[] selectIdsByTypeCatalog(Integer type, Integer catalogId);

}
